home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19960209-19960425 / 000449_news@columbia.edu _Sun Apr 21 12:38:50 1996.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.5/8.7.3) with ESMTP id MAA01565 for <kermit.misc@watsun>; Sun, 21 Apr 1996 12:38:49 -0400 (EDT)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.5/8.7.3) id MAA18356 for kermit.misc@watsun; Sun, 21 Apr 1996 12:38:46 -0400 (EDT)
  4. Path: news.columbia.edu!lamont.ldeo.columbia.edu!news.er.usgs.gov!stc06.ctd.ornl.gov!fnnews.fnal.gov!uwm.edu!math.ohio-state.edu!howland.reston.ans.net!gatech!newsfeed.internetmci.com!news.ac.net!news.serv.net!news.alt.net!news1.alt.net!news.aros.net!news.cs.utah.edu!cc.usu.edu!jrd
  5. From: jrd@cc.usu.edu (Joe Doupnik)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: DOS-kermit 3.14 problem with Linux color ls
  8. Message-ID: <1996Apr20.172409.78653@cc.usu.edu>
  9. Date: 20 Apr 96 17:24:09 MDT
  10. References: <4jfcgh$r60@news.ccit.arizona.edu> <slrn4ne6e1.mbp.davis@wiwaxia.mit.edu>
  11. Organization: Utah State University
  12. Lines: 44
  13.  
  14. In article <slrn4ne6e1.mbp.davis@wiwaxia.mit.edu>, davis@space.mit.edu (John E. Davis) writes:
  15. > On 18 Apr 96 18:11:43 MDT, Joe Doupnik <jrd@cc.usu.edu>
  16. > wrote:
  17. >  :     b) Talk with the Linux people about how to write colored displays.
  18. >  :     Joe D.
  19. > I do not know exactly what you are referring to but, in my opinion, the
  20. > linux console handles color correctly.  It, like `rxvt' and the new version
  21. > of color xterm (unreleased, in beta test) uses the so-called ``new-color
  22. > model'' where the CURRENT background color is used for erasing by escape
  23. > sequences that clear various regions of the screen (e.g., clear screen,
  24. > erase to end of line, etc). To my knowledge, MS-Kermit uses the old color
  25. > model where the screen is erased using the DEFAULT background color.
  26. > This distinction has a very important impact on efficiency.  For example,
  27. > suppose that default background color is BLUE and, for whatever reason, some
  28. > program wants to turn the screen RED.  How can this be done?  
  29. > If the terminal erases using the CURRENT background color, this can be
  30. > achieved by setting the background color to RED and then clearing the
  31. > screen, e.g.,
  32. >     ESC [ 4 1 m ESC [ 2 J
  33. >     
  34. > which means that only 9 characters are needed to do this.  If the terminal
  35. > erases using the DEFAULT background color and, as in this example, that
  36. > color is BLUE, this method will not work because the screen will be erased
  37. > using BLUE.  As a result, if the terminal does not support an escape
  38. > sequence to set the DEFAULT background color, the program will have to set
  39. > the CURRENT color to red
  40. >    ESC [ 4 1 m
  41. > and then write 24 x 80 = 1920 space characters for a 24x80 screen!!!
  42. > -- 
  43. > John E. Davis                   Center for Space Research/AXAF Science Center
  44. > 617-258-8119                    MIT 37-662c, Cambridge, MA 02139
  45. > http://space.mit.edu/~davis
  46. -------------
  47.     While I understand the efficiency aspect, "new" meaning still wet
  48. from painting often strikes me as advocacy rather than compatibility.
  49.     But if you guys would please look at MSK v3.14, under SET TERMINAL,
  50. see ERASE, and the two options it provides: normal-background, current-color.
  51.     Joe D.